package com.aspose.cells;

class zbjj extends zck {
   zbjj(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      float var7;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            if (var4 > var5) {
               var7 = Math.min(var4, var5);
               var6 = var7 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
            } else {
               var7 = Math.max(var4, var5);
               var6 = var7 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
            }
         } else if (var4 > var5) {
            var7 = Math.min(var4, var5);
            var6 = var7 * 20040.0F / 100000.0F;
         } else {
            var7 = Math.max(var4, var5);
            var6 = var7 * 20040.0F / 100000.0F;
         }
      } else if (var4 > var5) {
         var7 = Math.min(var4, var5);
         var6 = var7 * 20040.0F / 100000.0F;
      } else {
         var7 = Math.max(var4, var5);
         var6 = var7 * 20040.0F / 100000.0F;
      }

      var5 = (float)((double)(2.0F * var5) / (1.0D + Math.sin(zbif.a(54.0D))));
      var4 = (float)((double)var4 / Math.cos(zbif.a(18.0D)));
      var7 = var1.i() / 2.0F - var6 + 6.0F;
      float var8 = var5 - 2.0F * var7;
      float var9 = var8 * var4 / var5;
      var2 = (float)((double)var2 - (double)var4 * (1.0D - Math.cos(zbif.a(18.0D))) / 2.0D);
      com.aspose.cells.b.a.b.a.ze var10 = new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var11 = new com.aspose.cells.b.a.b.zo[3];
      int var12;
      switch(this.e.b) {
      case 1:
      case 4:
         for(var12 = 0; var12 < 5; ++var12) {
            var11[0] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(18 + var12 * 72))) * (double)var4 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbif.a((double)(18 + var12 * 72))) * (double)var5 / 2.0D)));
            var11[1] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(54 + var12 * 72))) * (double)var9 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbif.a((double)(54 + var12 * 72))) * (double)var8 / 2.0D)));
            var11[2] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(18 + (var12 + 1) * 72))) * (double)var4 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbif.a((double)(18 + (var12 + 1) * 72))) * (double)var5 / 2.0D)));
            var10.a(var11[0], var11[1]);
            var10.a(var11[1], var11[2]);
         }

         return var10;
      case 2:
      case 3:
         for(var12 = 0; var12 < 5; ++var12) {
            var11[0] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(18 + var12 * 72))) * (double)var4 / 2.0D)), (float)((int)((double)(var3 + var5) - ((double)(var5 / 2.0F) + -Math.sin(zbif.a((double)(18 + var12 * 72))) * (double)var5 / 2.0D))));
            var11[1] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(54 + var12 * 72))) * (double)var9 / 2.0D)), (float)((int)((double)(var3 + var5) - ((double)(var5 / 2.0F) + -Math.sin(zbif.a((double)(54 + var12 * 72))) * (double)var8 / 2.0D))));
            var11[2] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(18 + (var12 + 1) * 72))) * (double)var4 / 2.0D)), (float)((int)((double)(var3 + var5) - ((double)(var5 / 2.0F) + -Math.sin(zbif.a((double)(18 + (var12 + 1) * 72))) * (double)var5 / 2.0D))));
            var10.a(var11[0], var11[1]);
            var10.a(var11[1], var11[2]);
         }
      }

      return var10;
   }
}
